{
	"ProcessTemplates": [
		{
			"Name": "HubSpot to JSON - Companies",
			"Modified": "2024-07-18T13:30:54.9098289",
			"Modifier": "charlotta.bergstrom@frends.com",
			"Tags": [],
			"TemplateProcessTags": [],
			"Description": "This template retrieves company data from HubSpot and downloads it to a local fileshare as a single JSON file.",
			"Version": 5,
			"UniqueIdentifier": "42c37c64-161d-444f-b1ea-83979a669e2b",
			"ProcessVariablesJson": "{\"HubSpotAccessToken\":{\"Value\":\"\\\"ExampleAccessToken\\\"\",\"IsSecret\":true,\"Mode\":\"text\",\"Description\":\"The access token for the HubSpot API.\"},\"TargetFilePath\":{\"Value\":\"\\\"/example_directory/example_filename.json\\\"\",\"IsSecret\":false,\"Mode\":\"text\",\"Description\":\"The full path of the resulting JSON file, including the file name.\"},\"CompanyProperties\":{\"Value\":\"\\\"domain,name,address,city,state,zip,country,phone\\\"\",\"IsSecret\":false,\"Mode\":\"text\",\"Description\":\"The company attributes fetched with the HubSpot API request.\"},\"CompanyAssociations\":{\"Value\":\"\\\"contacts,deals\\\"\",\"IsSecret\":false,\"Mode\":\"text\",\"Description\":\"The companies' connections to other object types fetched with the HubSpot API request.\"}}",
			"ProcessInfo": {
				"Process": {
					"Name": "HubSpot to JSON - Companies",
					"Modified": "2024-07-18T13:30:54.9098289",
					"Modifier": "charlotta.bergstrom@frends.com",
					"TagString": null,
					"Tags": [],
					"Description": "This template retrieves company data from HubSpot and downloads it to a local fileshare as a single JSON file.",
					"Version": 1,
					"UniqueIdentifier": "007efba9-3f9e-4074-8568-d34516ffc176",
					"GraphJson": null,
					"Bpmn": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<bpmn2:definitions xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:bpmn2=\"http://www.omg.org/spec/BPMN/20100524/MODEL\" xmlns:bpmndi=\"http://www.omg.org/spec/BPMN/20100524/DI\" xmlns:dc=\"http://www.omg.org/spec/DD/20100524/DC\" xmlns:di=\"http://www.omg.org/spec/DD/20100524/DI\" id=\"sample-diagram\" targetNamespace=\"http://bpmn.io/schema/bpmn\" xsi:schemaLocation=\"http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd\"><bpmn2:process id=\"Process_1\" isExecutable=\"false\"><bpmn2:startEvent id=\"StartEvent_1\" name=\"Manual\"><bpmn2:outgoing>Flow_0f16grx</bpmn2:outgoing></bpmn2:startEvent><bpmn2:sequenceFlow id=\"Flow_0f16grx\" sourceRef=\"StartEvent_1\" targetRef=\"Activity_0b4cl6g\" /><bpmn2:endEvent id=\"Event_1svcqes\"><bpmn2:incoming>Flow_0nen2cz</bpmn2:incoming></bpmn2:endEvent><bpmn2:scriptTask id=\"Activity_0b4cl6g\" name=\"Assign companies\"><bpmn2:incoming>Flow_0f16grx</bpmn2:incoming><bpmn2:outgoing>Flow_1r1ugzb</bpmn2:outgoing></bpmn2:scriptTask><bpmn2:sequenceFlow id=\"Flow_1r1ugzb\" sourceRef=\"Activity_0b4cl6g\" targetRef=\"Activity_08h40l5\" /><bpmn2:scriptTask id=\"Activity_08h40l5\" name=\"Assign pageUrl\"><bpmn2:incoming>Flow_1r1ugzb</bpmn2:incoming><bpmn2:outgoing>Flow_0buemk6</bpmn2:outgoing></bpmn2:scriptTask><bpmn2:sequenceFlow id=\"Flow_0buemk6\" sourceRef=\"Activity_08h40l5\" targetRef=\"Activity_09z992j\" /><bpmn2:subProcess id=\"Activity_09z992j\" name=\"Process result pages\"><bpmn2:incoming>Flow_0buemk6</bpmn2:incoming><bpmn2:outgoing>Flow_17jo4dd</bpmn2:outgoing><bpmn2:standardLoopCharacteristics /><bpmn2:startEvent id=\"Event_06y06xf\"><bpmn2:outgoing>Flow_1cnekom</bpmn2:outgoing></bpmn2:startEvent><bpmn2:endEvent id=\"Event_1xum6mf\" name=\"Continue to next page\"><bpmn2:incoming>Flow_18lxzdl</bpmn2:incoming></bpmn2:endEvent><bpmn2:task id=\"Activity_0293kfw\" name=\"Get companies on current page\"><bpmn2:incoming>Flow_1cnekom</bpmn2:incoming><bpmn2:outgoing>Flow_1bjvuib</bpmn2:outgoing><bpmn2:property id=\"Property_0dn4gv1\" name=\"__targetRef_placeholder\" /><bpmn2:dataInputAssociation id=\"DataInputAssociation_1antt5n\"><bpmn2:sourceRef>DataStoreReference_06bzp1b</bpmn2:sourceRef><bpmn2:targetRef>Property_0dn4gv1</bpmn2:targetRef></bpmn2:dataInputAssociation><bpmn2:standardLoopCharacteristics /></bpmn2:task><bpmn2:exclusiveGateway id=\"Gateway_1f5m1le\" name=\"Get companies successful?\" default=\"Flow_1uh0z47\"><bpmn2:incoming>Flow_1bjvuib</bpmn2:incoming><bpmn2:outgoing>Flow_0x9wt2y</bpmn2:outgoing><bpmn2:outgoing>Flow_1uh0z47</bpmn2:outgoing></bpmn2:exclusiveGateway><bpmn2:endEvent id=\"Event_1fggypp\" name=\"Finish processing result pages\"><bpmn2:incoming>Flow_0jjp1py</bpmn2:incoming></bpmn2:endEvent><bpmn2:exclusiveGateway id=\"Gateway_0949b3i\" name=\"Next page exists?\" default=\"Flow_0jjp1py\"><bpmn2:incoming>Flow_1owo2v2</bpmn2:incoming><bpmn2:outgoing>Flow_18lxzdl</bpmn2:outgoing><bpmn2:outgoing>Flow_0jjp1py</bpmn2:outgoing></bpmn2:exclusiveGateway><bpmn2:dataStoreReference id=\"DataStoreReference_06bzp1b\" name=\"HubSpot\" /><bpmn2:subProcess id=\"Activity_16tms2z\" name=\"For each company on page\"><bpmn2:incoming>Flow_0x9wt2y</bpmn2:incoming><bpmn2:outgoing>Flow_1owo2v2</bpmn2:outgoing><bpmn2:multiInstanceLoopCharacteristics isSequential=\"true\" /><bpmn2:startEvent id=\"Event_041vqmg\"><bpmn2:outgoing>Flow_1f389jp</bpmn2:outgoing></bpmn2:startEvent><bpmn2:endEvent id=\"Event_0f8c9co\" name=\"Continue to next company\"><bpmn2:incoming>Flow_0tjqnt5</bpmn2:incoming></bpmn2:endEvent><bpmn2:scriptTask id=\"Activity_1l7jwpb\" name=\"Add company to companies variable\"><bpmn2:incoming>Flow_1f389jp</bpmn2:incoming><bpmn2:outgoing>Flow_0tjqnt5</bpmn2:outgoing></bpmn2:scriptTask><bpmn2:sequenceFlow id=\"Flow_1f389jp\" sourceRef=\"Event_041vqmg\" targetRef=\"Activity_1l7jwpb\" /><bpmn2:sequenceFlow id=\"Flow_0tjqnt5\" sourceRef=\"Activity_1l7jwpb\" targetRef=\"Event_0f8c9co\" /></bpmn2:subProcess><bpmn2:intermediateThrowEvent id=\"Event_1pml7vd\" name=\"Throw error if request fails\"><bpmn2:incoming>Flow_1uh0z47</bpmn2:incoming><bpmn2:signalEventDefinition id=\"SignalEventDefinition_0ryz8i5\" /></bpmn2:intermediateThrowEvent><bpmn2:sequenceFlow id=\"Flow_1cnekom\" sourceRef=\"Event_06y06xf\" targetRef=\"Activity_0293kfw\" /><bpmn2:sequenceFlow id=\"Flow_18lxzdl\" name=\"yes\" sourceRef=\"Gateway_0949b3i\" targetRef=\"Event_1xum6mf\" /><bpmn2:sequenceFlow id=\"Flow_1bjvuib\" sourceRef=\"Activity_0293kfw\" targetRef=\"Gateway_1f5m1le\" /><bpmn2:sequenceFlow id=\"Flow_0x9wt2y\" name=\"yes\" sourceRef=\"Gateway_1f5m1le\" targetRef=\"Activity_16tms2z\" /><bpmn2:sequenceFlow id=\"Flow_1uh0z47\" name=\"no\" sourceRef=\"Gateway_1f5m1le\" targetRef=\"Event_1pml7vd\" /><bpmn2:sequenceFlow id=\"Flow_0jjp1py\" name=\"no\" sourceRef=\"Gateway_0949b3i\" targetRef=\"Event_1fggypp\" /><bpmn2:sequenceFlow id=\"Flow_1owo2v2\" sourceRef=\"Activity_16tms2z\" targetRef=\"Gateway_0949b3i\" /></bpmn2:subProcess><bpmn2:sequenceFlow id=\"Flow_17jo4dd\" sourceRef=\"Activity_09z992j\" targetRef=\"Activity_02l6gac\" /><bpmn2:task id=\"Activity_02l6gac\" name=\"Write into JSON file\"><bpmn2:incoming>Flow_17jo4dd</bpmn2:incoming><bpmn2:outgoing>Flow_0nen2cz</bpmn2:outgoing><bpmn2:dataOutputAssociation id=\"DataOutputAssociation_1vs9u4x\"><bpmn2:targetRef>DataObjectReference_03ykpq1</bpmn2:targetRef></bpmn2:dataOutputAssociation></bpmn2:task><bpmn2:sequenceFlow id=\"Flow_0nen2cz\" sourceRef=\"Activity_02l6gac\" targetRef=\"Event_1svcqes\" /><bpmn2:dataObjectReference id=\"DataObjectReference_03ykpq1\" name=\"Local fileshare\" dataObjectRef=\"DataObject_0h6e821\" /><bpmn2:dataObject id=\"DataObject_0h6e821\" /><bpmn2:textAnnotation id=\"TextAnnotation_1c3pven\"><bpmn2:text>Initialize a variable for storing company data.</bpmn2:text></bpmn2:textAnnotation><bpmn2:association id=\"Association_1j2nh4z\" sourceRef=\"Activity_0b4cl6g\" targetRef=\"TextAnnotation_1c3pven\" /><bpmn2:textAnnotation id=\"TextAnnotation_1gndhtq\"><bpmn2:text>Initialize a variable for the HubSpot request URL, to get all paginated results.</bpmn2:text></bpmn2:textAnnotation><bpmn2:association id=\"Association_1is67i9\" sourceRef=\"Activity_08h40l5\" targetRef=\"TextAnnotation_1gndhtq\" /><bpmn2:textAnnotation id=\"TextAnnotation_1s5fv0l\"><bpmn2:text>The contents of the companies variable are written into a single file at the specified file path.</bpmn2:text></bpmn2:textAnnotation><bpmn2:association id=\"Association_1ur7a51\" sourceRef=\"Activity_02l6gac\" targetRef=\"TextAnnotation_1s5fv0l\" /></bpmn2:process><bpmndi:BPMNDiagram id=\"BPMNDiagram_1\"><bpmndi:BPMNPlane id=\"BPMNPlane_1\" bpmnElement=\"Process_1\"><bpmndi:BPMNShape id=\"TextAnnotation_1c3pven_di\" bpmnElement=\"TextAnnotation_1c3pven\"><dc:Bounds x=\"530\" y=\"110\" width=\"100\" height=\"70\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"TextAnnotation_1gndhtq_di\" bpmnElement=\"TextAnnotation_1gndhtq\"><dc:Bounds x=\"670\" y=\"96\" width=\"100\" height=\"97\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"TextAnnotation_1s5fv0l_di\" bpmnElement=\"TextAnnotation_1s5fv0l\"><dc:Bounds x=\"2070\" y=\"370\" width=\"120\" height=\"84\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"_BPMNShape_StartEvent_2\" bpmnElement=\"StartEvent_1\"><dc:Bounds x=\"432\" y=\"240\" width=\"36\" height=\"36\" /><bpmndi:BPMNLabel><dc:Bounds x=\"432\" y=\"276\" width=\"37\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Activity_0b4cl6g_di\" bpmnElement=\"Activity_0b4cl6g\"><dc:Bounds x=\"565\" y=\"243\" width=\"30\" height=\"30\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Activity_08h40l5_di\" bpmnElement=\"Activity_08h40l5\"><dc:Bounds x=\"695\" y=\"243\" width=\"30\" height=\"30\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Event_1svcqes_di\" bpmnElement=\"Event_1svcqes\"><dc:Bounds x=\"2282\" y=\"240\" width=\"36\" height=\"36\" /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Activity_02l6gac_di\" bpmnElement=\"Activity_02l6gac\"><dc:Bounds x=\"2070\" y=\"218\" width=\"100\" height=\"80\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"DataObjectReference_03ykpq1_di\" bpmnElement=\"DataObjectReference_03ykpq1\"><dc:Bounds x=\"2102\" y=\"85\" width=\"36\" height=\"50\" /><bpmndi:BPMNLabel><dc:Bounds x=\"2084\" y=\"55\" width=\"72\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNEdge id=\"Association_1j2nh4z_di\" bpmnElement=\"Association_1j2nh4z\"><di:waypoint x=\"580\" y=\"243\" /><di:waypoint x=\"580\" y=\"180\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Association_1is67i9_di\" bpmnElement=\"Association_1is67i9\"><di:waypoint x=\"710\" y=\"243\" /><di:waypoint x=\"710\" y=\"193\" /></bpmndi:BPMNEdge><bpmndi:BPMNShape id=\"Activity_09z992j_di\" bpmnElement=\"Activity_09z992j\" isExpanded=\"true\"><dc:Bounds x=\"820\" y=\"30\" width=\"1170\" height=\"470\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Event_06y06xf_di\" bpmnElement=\"Event_06y06xf\"><dc:Bounds x=\"922\" y=\"242\" width=\"36\" height=\"36\" /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Event_1xum6mf_di\" bpmnElement=\"Event_1xum6mf\"><dc:Bounds x=\"1864\" y=\"242\" width=\"36\" height=\"36\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1842\" y=\"285\" width=\"82\" height=\"27\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Activity_0293kfw_di\" bpmnElement=\"Activity_0293kfw\"><dc:Bounds x=\"1002\" y=\"220\" width=\"100\" height=\"80\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Gateway_1f5m1le_di\" bpmnElement=\"Gateway_1f5m1le\" isMarkerVisible=\"true\"><dc:Bounds x=\"1157\" y=\"235\" width=\"50\" height=\"50\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1145\" y=\"198\" width=\"74\" height=\"27\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Event_1fggypp_di\" bpmnElement=\"Event_1fggypp\"><dc:Bounds x=\"1864\" y=\"352\" width=\"36\" height=\"36\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1839\" y=\"395\" width=\"87\" height=\"27\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Gateway_0949b3i_di\" bpmnElement=\"Gateway_0949b3i\" isMarkerVisible=\"true\"><dc:Bounds x=\"1737\" y=\"235\" width=\"50\" height=\"50\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1718\" y=\"211\" width=\"88\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"DataStoreReference_06bzp1b_di\" bpmnElement=\"DataStoreReference_06bzp1b\"><dc:Bounds x=\"1027\" y=\"105\" width=\"50\" height=\"50\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1030\" y=\"75\" width=\"44\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Event_1pml7vd_di\" bpmnElement=\"Event_1pml7vd\"><dc:Bounds x=\"1164\" y=\"382\" width=\"36\" height=\"36\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1149\" y=\"425\" width=\"66\" height=\"27\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Activity_16tms2z_di\" bpmnElement=\"Activity_16tms2z\" isExpanded=\"true\"><dc:Bounds x=\"1302\" y=\"160\" width=\"350\" height=\"200\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Event_041vqmg_di\" bpmnElement=\"Event_041vqmg\"><dc:Bounds x=\"1342\" y=\"242\" width=\"36\" height=\"36\" /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Event_0f8c9co_di\" bpmnElement=\"Event_0f8c9co\"><dc:Bounds x=\"1574\" y=\"242\" width=\"36\" height=\"36\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1551\" y=\"285\" width=\"82\" height=\"27\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Activity_1l7jwpb_di\" bpmnElement=\"Activity_1l7jwpb\"><dc:Bounds x=\"1437\" y=\"245\" width=\"30\" height=\"30\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNEdge id=\"Flow_1f389jp_di\" bpmnElement=\"Flow_1f389jp\"><di:waypoint x=\"1378\" y=\"260\" /><di:waypoint x=\"1437\" y=\"260\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_0tjqnt5_di\" bpmnElement=\"Flow_0tjqnt5\"><di:waypoint x=\"1467\" y=\"260\" /><di:waypoint x=\"1574\" y=\"260\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_1cnekom_di\" bpmnElement=\"Flow_1cnekom\"><di:waypoint x=\"958\" y=\"260\" /><di:waypoint x=\"1002\" y=\"260\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_18lxzdl_di\" bpmnElement=\"Flow_18lxzdl\"><di:waypoint x=\"1787\" y=\"260\" /><di:waypoint x=\"1864\" y=\"260\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1818\" y=\"242\" width=\"16\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"DataInputAssociation_1antt5n_di\" bpmnElement=\"DataInputAssociation_1antt5n\"><di:waypoint x=\"1052\" y=\"155\" /><di:waypoint x=\"1052\" y=\"220\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_1bjvuib_di\" bpmnElement=\"Flow_1bjvuib\"><di:waypoint x=\"1102\" y=\"260\" /><di:waypoint x=\"1157\" y=\"260\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_0x9wt2y_di\" bpmnElement=\"Flow_0x9wt2y\"><di:waypoint x=\"1207\" y=\"260\" /><di:waypoint x=\"1302\" y=\"260\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1247\" y=\"242\" width=\"16\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_1uh0z47_di\" bpmnElement=\"Flow_1uh0z47\"><di:waypoint x=\"1182\" y=\"285\" /><di:waypoint x=\"1182\" y=\"382\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1191\" y=\"331\" width=\"13\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_0jjp1py_di\" bpmnElement=\"Flow_0jjp1py\"><di:waypoint x=\"1762\" y=\"285\" /><di:waypoint x=\"1762\" y=\"370\" /><di:waypoint x=\"1864\" y=\"370\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1771\" y=\"327\" width=\"13\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_1owo2v2_di\" bpmnElement=\"Flow_1owo2v2\"><di:waypoint x=\"1652\" y=\"260\" /><di:waypoint x=\"1737\" y=\"260\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Association_1ur7a51_di\" bpmnElement=\"Association_1ur7a51\"><di:waypoint x=\"2120\" y=\"298\" /><di:waypoint x=\"2120\" y=\"370\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_0f16grx_di\" bpmnElement=\"Flow_0f16grx\"><di:waypoint x=\"468\" y=\"258\" /><di:waypoint x=\"565\" y=\"258\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_1r1ugzb_di\" bpmnElement=\"Flow_1r1ugzb\"><di:waypoint x=\"595\" y=\"258\" /><di:waypoint x=\"695\" y=\"258\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_0buemk6_di\" bpmnElement=\"Flow_0buemk6\"><di:waypoint x=\"725\" y=\"258\" /><di:waypoint x=\"820\" y=\"258\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_17jo4dd_di\" bpmnElement=\"Flow_17jo4dd\"><di:waypoint x=\"1990\" y=\"258\" /><di:waypoint x=\"2070\" y=\"258\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_0nen2cz_di\" bpmnElement=\"Flow_0nen2cz\"><di:waypoint x=\"2170\" y=\"258\" /><di:waypoint x=\"2282\" y=\"258\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"DataOutputAssociation_1vs9u4x_di\" bpmnElement=\"DataOutputAssociation_1vs9u4x\"><di:waypoint x=\"2119\" y=\"218\" /><di:waypoint x=\"2118\" y=\"135\" /></bpmndi:BPMNEdge></bpmndi:BPMNPlane></bpmndi:BPMNDiagram></bpmn2:definitions>",
					"ElementParameters": "[{\"Id\":\"StartEvent_1\",\"Type\":0,\"Parameters\":{},\"SelectedTypeId\":\"ManualTrigger\",\"PromoteResultAs\":null,\"Name\":\"Manual\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Event_1svcqes\",\"Type\":5,\"Parameters\":{\"expression\":{\"mode\":\"text\",\"value\":\"Company data exported to {{#result[Write into JSON file].Path}}.\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":null,\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Activity_0b4cl6g\",\"Type\":12,\"Parameters\":{\"variableName\":\"companies\",\"variableExpression\":{\"mode\":\"csharp\",\"value\":\"new JArray()\"},\"shouldAssignVariable\":{\"mode\":\"toggle\",\"value\":true},\"returnType\":\"\"},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"Assign companies\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Activity_08h40l5\",\"Type\":12,\"Parameters\":{\"variableName\":\"pageUrl\",\"variableExpression\":{\"mode\":\"text\",\"value\":\"https://api.hubapi.com/crm/v3/objects/companies?limit=100&properties={{#var.CompanyProperties}}&associations={{#var.CompanyAssociations}}\"},\"shouldAssignVariable\":{\"mode\":\"toggle\",\"value\":true}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"Assign pageUrl\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Activity_09z992j\",\"Type\":11,\"Parameters\":{\"maxIterations\":{\"mode\":\"integer\",\"value\":\"10000\"},\"expression\":{\"mode\":\"csharp\",\"value\":\"#var.pageUrl != null\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"Process result pages\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Event_06y06xf\",\"Type\":13,\"Parameters\":{},\"SelectedTypeId\":\"\",\"PromoteResultAs\":null,\"Name\":null,\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Event_1xum6mf\",\"Type\":5,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"#var.pageUrl = #result[Get companies on current page].Body.paging.next.link\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":null,\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Activity_0293kfw\",\"Type\":1,\"Parameters\":{\"input\":{\"Method\":{\"mode\":\"select\",\"value\":\"GET\"},\"ResultMethod\":{\"mode\":\"select\",\"value\":\"JToken\"},\"Url\":{\"mode\":\"csharp\",\"value\":\"#var.pageUrl\"},\"Message\":{\"mode\":\"text\",\"value\":\"\"},\"Headers\":[]},\"options\":{\"Authentication\":{\"mode\":\"select\",\"value\":\"OAuth\"},\"Username\":{\"mode\":\"text\",\"value\":\"\"},\"Password\":{\"mode\":\"text\",\"value\":\"\"},\"Token\":{\"mode\":\"csharp\",\"value\":\"#var.HubSpotAccessToken\"},\"ClientCertificateSource\":{\"mode\":\"select\",\"value\":\"CertificateStore\"},\"ClientCertificateFilePath\":{\"mode\":\"text\",\"value\":\"\"},\"ClientCertificateInBase64\":{\"mode\":\"text\",\"value\":\"\"},\"ClientCertificateKeyPhrase\":{\"mode\":\"text\",\"value\":\"\"},\"CertificateThumbprint\":{\"mode\":\"text\",\"value\":\"\"},\"LoadEntireChainForCertificate\":{\"mode\":\"toggle\",\"value\":true},\"ConnectionTimeoutSeconds\":{\"mode\":\"integer\",\"value\":30},\"FollowRedirects\":{\"mode\":\"toggle\",\"value\":true},\"AllowInvalidCertificate\":{\"mode\":\"toggle\",\"value\":false},\"AllowInvalidResponseContentTypeCharSet\":{\"mode\":\"toggle\",\"value\":false},\"ThrowExceptionOnErrorResponse\":{\"mode\":\"toggle\",\"value\":false},\"AutomaticCookieHandling\":{\"mode\":\"toggle\",\"value\":true}},\"cancellationToken\":null},\"SelectedTypeId\":\"/ProcessTask/d2f2020e-4ce6-4e5f-879f-ef34e57c9fca/v1\",\"PromoteResultAs\":null,\"Name\":\"Get companies on current page\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":true,\"MaxRetryCount\":5,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Gateway_1f5m1le\",\"Type\":2,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"#result[Get companies on current page].StatusCode == 200\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"Get companies successful?\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Event_1fggypp\",\"Type\":5,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"#var.pageUrl = null\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":null,\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Gateway_0949b3i\",\"Type\":2,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"#result[Get companies on current page].Body.paging != null\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"Next page exists?\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"DataStoreReference_06bzp1b\",\"Type\":22,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"HubSpot\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Activity_16tms2z\",\"Type\":10,\"Parameters\":{\"variable\":\"company\",\"expression\":{\"mode\":\"csharp\",\"value\":\"#result[Get companies on current page].Body.results\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"For each company on page\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Event_1pml7vd\",\"Type\":6,\"Parameters\":{\"expression\":{\"mode\":\"text\",\"value\":\"Error while getting companies from HubSpot: {{#result[Get companies on current page].Body.message}}\"},\"bypassGlobalExceptionHandler\":{\"mode\":\"toggle\",\"value\":true}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":null,\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_18lxzdl\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"yes\",\"Description\":null,\"IsDefault\":false,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_0x9wt2y\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"yes\",\"Description\":null,\"IsDefault\":false,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_1uh0z47\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"no\",\"Description\":null,\"IsDefault\":true,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_0jjp1py\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"no\",\"Description\":null,\"IsDefault\":true,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Event_041vqmg\",\"Type\":13,\"Parameters\":{},\"SelectedTypeId\":\"\",\"PromoteResultAs\":null,\"Name\":null,\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Event_0f8c9co\",\"Type\":5,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"#result\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":null,\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Activity_1l7jwpb\",\"Type\":12,\"Parameters\":{\"variableName\":\"\",\"variableExpression\":{\"mode\":\"csharp\",\"value\":\"#var.companies.Add(#var.company)\"},\"shouldAssignVariable\":{\"mode\":\"toggle\",\"value\":false}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"Add company to companies variable\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Activity_02l6gac\",\"Type\":1,\"Parameters\":{\"input\":{\"Content\":{\"mode\":\"csharp\",\"value\":\"#var.companies.ToString()\"},\"Path\":{\"mode\":\"csharp\",\"value\":\"#var.TargetFilePath\"}},\"options\":{\"UseGivenUserCredentialsForRemoteConnections\":{\"mode\":\"toggle\",\"value\":false},\"UserName\":{\"mode\":\"text\",\"value\":\"domain\\\\username\"},\"Password\":{\"mode\":\"text\",\"value\":\"\"},\"FileEncoding\":{\"mode\":\"select\",\"value\":\"UTF8\"},\"EnableBom\":{\"mode\":\"toggle\",\"value\":false},\"EncodingInString\":{\"mode\":\"text\",\"value\":\"\"},\"WriteBehaviour\":{\"mode\":\"select\",\"value\":\"Overwrite\"}}},\"SelectedTypeId\":\"/ProcessTask/0f7c0838-132b-4fe3-a7eb-f5bf9ba48e80/v1\",\"PromoteResultAs\":null,\"Name\":\"Write into JSON file\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":false,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"DataObjectReference_03ykpq1\",\"Type\":21,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"Local fileshare\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null}]",
					"ManualTriggerJson": "[]",
					"IsSubprocess": false,
					"TriggersJson": "[{\"$type\":\"ManualTrigger\",\"config\":{},\"name\":\"Manual\",\"id\":\"StartEvent_1\",\"shouldNotLogParameters\":null}]",
					"AssemblyName": null,
					"PackageId": null,
					"PackageVersion": null,
					"UsedTasksJson": "[\"/ProcessTask/D2F2020E-4CE6-4E5F-879F-EF34E57C9FCA/v1\",\"/ProcessTask/0F7C0838-132B-4FE3-A7EB-F5BF9BA48E80/v1\"]",
					"UsedSubprocessesJson": "{}",
					"ProcessExecutionVersion": "",
					"FrendsVersion": "5.7.3.1743",
					"TargetFramework": "net8.0",
					"StaticRequiredEnvironmentVariables": [],
					"RequiredEnvironmentVariables": [],
					"PromotedResultVariablesJson": "[]",
					"MajorVersion": 1,
					"MinorVersion": 0,
					"IsForMonitoringRule": false,
					"ProcessVariablesJson": null
				},
				"LinkedTasks": {
					"007efba9-3f9e-4074-8568-d34516ffc176": [
						{
							"Id": "d2f2020e-4ce6-4e5f-879f-ef34e57c9fca",
							"PackageId": "Frends.HTTP.Request",
							"PackageVersion": "1.1.2",
							"Name": "Frends.HTTP.Request.HTTP.Request(Input, Options, CancellationToken)",
							"FrameworkIdentifier": ".NETCoreApp"
						},
						{
							"Id": "0f7c0838-132b-4fe3-a7eb-f5bf9ba48e80",
							"PackageId": "Frends.Files.Write",
							"PackageVersion": "1.0.1",
							"Name": "Frends.Files.Write.Files.Write(Input, Options)",
							"FrameworkIdentifier": ".NETCoreApp"
						}
					]
				},
				"LinkedSubProcess": {},
				"Version": "Acc41"
			}
		}
	]
}